package com.durian.affairs.service;

import com.durian.affairs.api.domain.CwReceiptPlan;
import com.durian.financial.api.domain.vo.ContractVO;

import java.util.List;

/**
 * 收款计划Service接口
 * 
 * @author durian
 * @date 2022-06-25
 */
public interface ICwReceiptPlanService 
{
    /**
     * 查询收款计划
     * 
     * @param id 收款计划主键
     * @return 收款计划
     */
    public CwReceiptPlan selectCwReceiptPlanById(Long id);

    /**
     * 查询收款计划列表
     * 
     * @param cwReceiptPlan 收款计划
     * @return 收款计划集合
     */
    public List<CwReceiptPlan> selectCwReceiptPlanList(CwReceiptPlan cwReceiptPlan);

    /**
     * 新增收款计划
     * 
     * @param cwReceiptPlan 收款计划
     * @return 结果
     */
    public int insertCwReceiptPlan(CwReceiptPlan cwReceiptPlan);

    /**
     * 修改收款计划
     * 
     * @param cwReceiptPlan 收款计划
     * @return 结果
     */
    public int updateCwReceiptPlan(CwReceiptPlan cwReceiptPlan);

    /**
     * 批量删除收款计划
     * 
     * @param ids 需要删除的收款计划主键集合
     * @return 结果
     */
    public int deleteCwReceiptPlanByIds(Long[] ids);

    /**
     * 删除收款计划信息
     * 
     * @param id 收款计划主键
     * @return 结果
     */
    public int deleteCwReceiptPlanById(Long id);

    /**
     * 根据合同信息获取对应计划列表
     *
     * @param vo
     * @return
     */
    List<CwReceiptPlan> selectCwReceiptPlanByContract(ContractVO vo);

    /**
     * 修改收款计划状态
     */
    int updateStatus(CwReceiptPlan cwReceiptPlan);
}
